package com.chucang.shucang.ttp.messagecenter.strategy.concrete;

import com.chucang.shucang.common.mq.message.SmsCodeMessage;
import com.chucang.shucang.ttp.messagecenter.enums.MESSAGE_TYPE;
import com.chucang.shucang.ttp.messagecenter.strategy.MessageStrategy;
import lombok.extern.slf4j.Slf4j;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/9/26 17:45
 * @description 阿里短信发送策略
 */
@Slf4j
public class AliSms implements MessageStrategy {
    @Override
    public boolean sendMessage(MESSAGE_TYPE messageType, SmsCodeMessage smsCodeMessage) {
        log.info("开始发送消息======》{},{}", messageType, smsCodeMessage.getSmsCode());
        return true;
    }
}
